package com.fs.domain;

import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务人员管理对象 serve_provider
 *
 * @author zh
 * @date 2024-10-22
 */
public class AgencyProvider extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 编号
     */
    @Excel(name = "编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private String code;

    /**
     * 类型，2：服务人员，3：服务机构
     */
    @Excel(name = "类型，2：服务人员，3：服务机构")
    private Integer type;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 电话
     */
    @Excel(name = "电话")
    private String phone;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatar;

    /**
     * 状态，0：正常，1：冻结
     */
    @Excel(name = "状态，0：正常，1：冻结")
    private Integer status;

    /**
     * 接单状态，0：接单中，1：休息中
     */
    @Excel(name = "接单状态，0：接单中，1：休息中")
    private Integer settingsStatus;

    /**
     * 机构登录密码
     */
    @Excel(name = "机构登录密码")
    private String password;

    /**
     * 账号冻结原因
     */
    @Excel(name = "账号冻结原因")
    private String accountLockReason;

    /**
     * 综合评分
     */
    @Excel(name = "综合评分")
    private Double score;

    /**
     * 好评率
     */
    @Excel(name = "好评率")
    private String goodLevelRate;

    /**
     * 是否已删除，0：未删除，1：已删除
     */
    private Integer isDeleted;

    /**
     * 服务人员认证审核信息
     */
    private List<WorkerCertificationAudit> workerCertificationAuditList;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setSettingsStatus(Integer settingsStatus) {
        this.settingsStatus = settingsStatus;
    }

    public Integer getSettingsStatus() {
        return settingsStatus;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setAccountLockReason(String accountLockReason) {
        this.accountLockReason = accountLockReason;
    }

    public String getAccountLockReason() {
        return accountLockReason;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getScore() {
        return score;
    }

    public void setGoodLevelRate(String goodLevelRate) {
        this.goodLevelRate = goodLevelRate;
    }

    public String getGoodLevelRate() {
        return goodLevelRate;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public List<WorkerCertificationAudit> getWorkerCertificationAuditList() {
        return workerCertificationAuditList;
    }

    public void setWorkerCertificationAuditList(List<WorkerCertificationAudit> workerCertificationAuditList) {
        this.workerCertificationAuditList = workerCertificationAuditList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("type", getType())
                .append("name", getName())
                .append("phone", getPhone())
                .append("avatar", getAvatar())
                .append("status", getStatus())
                .append("settingsStatus", getSettingsStatus())
                .append("password", getPassword())
                .append("accountLockReason", getAccountLockReason())
                .append("score", getScore())
                .append("goodLevelRate", getGoodLevelRate())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isDeleted", getIsDeleted())
                .append("workerCertificationAuditList", getWorkerCertificationAuditList())
                .toString();
    }
}
